package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 多单位表
 * @TableName yd_unit
 */
@TableName(value ="yd_unit")
@Data
public class YdUnit implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称，支持多单位
     */
    @TableField(value = "name")
    private String name;

    /**
     * 基础单位
     */
    @TableField(value = "basic_unit")
    private String basicUnit;

    /**
     * 副单位
     */
    @TableField(value = "other_unit")
    private String otherUnit;

    /**
     * 副单位2
     */
    @TableField(value = "other_unit_two")
    private String otherUnitTwo;

    /**
     * 副单位3
     */
    @TableField(value = "other_unit_three")
    private String otherUnitThree;

    /**
     * 比例
     */
    @TableField(value = "ratio")
    private BigDecimal ratio;

    /**
     * 比例2
     */
    @TableField(value = "ratio_two")
    private BigDecimal ratioTwo;

    /**
     * 比例3
     */
    @TableField(value = "ratio_three")
    private BigDecimal ratioThree;

    /**
     * 启用
     */
    @TableField(value = "enabled")
    private Boolean enabled;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}